﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EnvironmentManagerSystem.MODE;
using EnvironmentManagerSystem.BLL;
using System.Collections;

namespace EnvironmentManagerSystem
{
    public partial class TestAddQ : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void asd_Click(object sender, EventArgs e)
        {
            BLL.HuanJing.EditTable("delete from tbs001_q");
            for (int i = 1; i <=Convert.ToInt32(this.i.Text);i++ )
            {
                for (int j = 1; j <= Convert.ToInt32(this.j.Text); j++)
                {
                    if (BLL.HuanJing.EditTable("insert into `tbs001_q` (`RoleID`, `FunID`, `value`) values('" + i + "','" + j + "','1');") != 1)
                    {
                        asd.Text = "错误";
                    }
                }
            }
        }
    }
}
